﻿<UserControl
	x:Class="HomeUX.ClientApp.MsAv" Width="800" Height="530" IsTabStop="False"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:c="clr-namespace:HomeUX.Controls;assembly=HomeUX.ClientLibrary"
    xmlns:local="clr-namespace:HomeUX.ClientApp"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

	<Grid x:Name="LayoutRoot" Background="{StaticResource DefaultBackgroundBrush}">
        
		<local:MediaControl x:Name="TheMediaControl" Margin="5,5,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" />
        
        <!-- Bedroom -->

		<c:TouchButton x:Name="Bedroom_HearButton" Text="Listen to&#xa;TBD" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="460,70,0,0" Width="80"
			ItemAction="ToggleBooleanValue" />
		<c:TouchButton x:Name="Bedroom_WatchButton" Text="Watch&#xa;TBD" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="540,70,0,0" Width="80"
			ItemAction="ToggleBooleanValue" />
		
        <c:TouchDropDownList Label="Bedroom Audio Source" SyncPath="Master Suite Audio\Source" HorizontalAlignment="Left" Margin="460,130,0,0" VerticalAlignment="Top" Width="262"
			ViewportMinWidth="280" ViewportMaxHeight="425" DropDownBorderThickness="0"
			ItemAction="SetStringValue" ConfigurationSyncPath="." ItemsConfigurationSyncPath="Values" />
        
        <c:TouchLevel Label="Bedroom Volume" SyncPath="Master Suite Audio\Volume" HorizontalAlignment="Left" Margin="460,185,0,0" VerticalAlignment="Top" Width="262"/>
		<c:TouchButton Text="Mute" SyncPath="Master Suite Audio\IsMuted" ItemAction="ToggleBooleanValue" HorizontalAlignment="Right" Margin="0,185,24,0" VerticalAlignment="Top" d:LayoutOverrides="Width, Height"/>

		<!-- Office -->

		<c:TouchButton x:Name="Office_HearButton" Text="Listen to&#xa;TBD" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="460,310,0,0" Width="80"
			ItemAction="ToggleBooleanValue" />
        
        <c:TouchDropDownList Label="Office Audio Source" SyncPath="Office Audio\Source" HorizontalAlignment="Left" Margin="460,370,0,0" VerticalAlignment="Top" Width="262"
			ViewportMinWidth="280" ViewportMaxHeight="425" DropDownBorderThickness="0"
			ItemAction="SetStringValue" ConfigurationSyncPath="." ItemsConfigurationSyncPath="Values" />
			
		<c:TouchLevel Label="Office Volume" SyncPath="Office Audio\Volume" HorizontalAlignment="Left" Margin="460,425,0,0" VerticalAlignment="Top" Width="262"/>
		<c:TouchButton Text="Mute" SyncPath="Office Audio\IsMuted" ItemAction="ToggleBooleanValue" HorizontalAlignment="Right" Margin="0,425,24,0" VerticalAlignment="Top" d:LayoutOverrides="Width, Height"/>
		<Border Margin="362.5,137.5,0,0" Background="Silver" Height="25" VerticalAlignment="Top" HorizontalAlignment="Left" Width="160" RenderTransformOrigin="0.5,0.5" UseLayoutRounding="False" d:LayoutRounding="Auto">
			<Border.RenderTransform>
				<TransformGroup>
					<ScaleTransform/>
					<SkewTransform/>
					<RotateTransform Angle="-90"/>
					<TranslateTransform/>
				</TransformGroup>
			</Border.RenderTransform><TextBlock TextAlignment="Center" VerticalAlignment="Center" FontSize="13" Foreground="White" FontWeight="Bold"><Run Text="Bedroom"/></TextBlock></Border>
		<Border Margin="362.5,380,0,0" Background="Silver" Height="25" VerticalAlignment="Top" HorizontalAlignment="Left" Width="160" RenderTransformOrigin="0.5,0.5" UseLayoutRounding="False" d:LayoutRounding="Auto">
			<Border.RenderTransform>
				<TransformGroup>
					<ScaleTransform/>
					<SkewTransform/>
					<RotateTransform Angle="-90"/>
					<TranslateTransform/>
				</TransformGroup>
			</Border.RenderTransform><TextBlock TextAlignment="Center" VerticalAlignment="Center" FontSize="13" Foreground="White" FontWeight="Bold"><Run Text="Office"/></TextBlock></Border>
		<c:TouchButton HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,5,5,0" Width="80"
			Text="Lighting" ItemAction="Navigate" Tag="MasterSuiteScreen" />
		<Border Margin="679,18,0,0" Background="Silver" Height="25" VerticalAlignment="Top" HorizontalAlignment="Left" Width="47" RenderTransformOrigin="0.5,0.5" UseLayoutRounding="False" d:LayoutRounding="Auto">
			<Border.RenderTransform>
				<TransformGroup>
					<ScaleTransform/>
					<SkewTransform/>
					<RotateTransform Angle="-90"/>
					<TranslateTransform/>
				</TransformGroup>
			</Border.RenderTransform>
			<TextBlock TextAlignment="Center" VerticalAlignment="Center" FontSize="13" Foreground="White" FontWeight="Bold"><Run Text="Go To"/></TextBlock></Border>
	
    </Grid>

</UserControl>

